Skip to content

TapWithSignal class

Defined in

Namespace: ReactiveUI.Primitives.Signals Assembly: ReactiveUI.Primitives.Core.dll Full name: ReactiveUI.Primitives.Signals.TapWithSignal<T1, T2> Modifiers: public sealed

Summary

View source

        Invokes a stateful action for each source value while forwarding the value unchanged, without allocating a
        per-value closure: the state is stored on the sink and passed to the action for each element.
        

Applies to

net10.0, net10.0-browserwasm1.0, net10.0-desktop1.0, net9.0, net9.0-browserwasm1.0, net9.0-desktop1.0, net8.0, net8.0-ios17.5, net8.0-maccatalyst17.5, net8.0-macos14.2, net8.0-macos14.5, net8.0-tvos17.2, netstandard2.1, net462, net481

Class hierarchy
classDiagram
class TapWithSignal~T1,T2~
class IRequireCurrentThread~T~ {
    <>
}
IRequireCurrentThread~T~ <|.. TapWithSignal~T1,T2~
class IObservable~T~ {
    <>
}
IObservable~T~ <|.. TapWithSignal~T1,T2~

Implements: IRequireCurrentThread, IObservable

Constructors

NameSummary
.ctorInitializes a new instance of the [TapWithSignal](# class.

Methods

NameSummary
IsRequiredSubscribeOnCurrentThreadDetermines whether the sink must subscribe on the current thread.
SubscribeSubscribes the observer to the tapped sequence.
Inherited members